﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace WebFormsBinder
{
    public class JSValidationRule<TEntity>
    {
        public string JSCondition { get; private set; }
        public IEnumerable<string> Fields { get; private set; }
        public string Message { get; private set; }

        public JSValidationRule(string condition, string message, IEnumerable<string> fields)
        {
            JSCondition = condition;
            Fields = fields;
            Message = message;
        }
    }
}
